package routerGroup

import (
	"coursedesign/projectGo/controller"
	"github.com/gin-gonic/gin"
)

func enterGroup(r *gin.Engine) {
	enterRoutes := r.Group("/enter")
	enterController := controller.NewEnterController()
	enterRoutes.GET("", enterController.PageList)        // 展示货物信息
	enterRoutes.POST("", enterController.Create)         // 创建货物
	enterRoutes.PUT("/:uuid", enterController.Update)    // 更新信息
	enterRoutes.DELETE("/:uuid", enterController.Delete) // 删除信息
}
